﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MessageList.aspx.cs" Inherits="AlbonWeb.Manager.MessageManager.MessageList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Message List</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Manager>>Message Manager</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="4" class="content_title">
                    Message List
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td align="center">
                    From:<asp:TextBox ID="tbSender" runat="server"></asp:TextBox>
                </td>
                <td>
                    To:<asp:TextBox ID="tbReceiver" runat="server"></asp:TextBox>
                </td>
                <td>
                    Order REF:<asp:TextBox ID="refNo" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="newMessage" runat="server" Text="New Message" OnClick="newMessage_Click" />
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="4" align="center">
                    <table width="99%" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                        class="tb_list">
                        <asp:Repeater ID="repMain" runat="server">
                            <HeaderTemplate>
                                <tr class="tr_list_head">
                                    <td>
                                        <input type="checkbox" />
                                    </td>
                                    <td>
                                        From
                                    </td>
                                    <td>
                                        TO
                                    </td>
                                    <td>
                                        RefNo
                                    </td>
                                    <td style="width: 40%">
                                        Title
                                    </td>
                                    <td>
                                        ReadStatus
                                    </td>
                                    <td>
                                        CheckStatus
                                    </td>
                                    <td>
                                        createDate
                                    </td>
                                    <td>
                                        Delete
                                    </td>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tr_list_content" style='font-weight: <%#Boolean.Parse(Eval("isRead").ToString())?"":"bolder" %>'>
                                    <td>
                                        <input type="checkbox" />
                                    </td>
                                    <td>
                                        <%#Eval("sender") %>
                                    </td>
                                    <td>
                                        <%#Eval("receiver") %>
                                    </td>
                                    <td>
                                        <%#Eval("refNo") %>
                                    </td>
                                    <td align="left">
                                        <img src='<%#Boolean.Parse(Eval("isMarked").ToString())?"/images/mark.gif":"/images/unmark.gif"%>'
                                            alt='' />
                                        <a href='MessageReply.aspx?id=<%#Eval("ID")%>'>
                                            <%#Eval("title") %></a>
                                    </td>
                                    <td>
                                        <%#Boolean.Parse(Eval("isRead").ToString()) ? "Read" : "<span style='color:red'>UnRead</span>"%>
                                    </td>
                                    <td>
                                        <%#Boolean.Parse(Eval("isChecked").ToString()) ? "Checked" : "<span style='color:red'>UnChecked</span>"%>
                                    </td>
                                    <td>
                                        <%#Eval("createDate")%>
                                    </td>
                                    <td>
                                        <img src="/images/grv_delete.gif" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="13" align="center" class="netpager">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="First" LastPageText="Last"
                        NextPageText="Next" PageIndexBoxType="DropDownList" PrevPageText="Prev" ShowBoxThreshold="15"
                        ShowCustomInfoSection="Left" ShowMoreButtons="False" SubmitButtonText="Go" TextAfterPageIndexBox=""
                        TextBeforePageIndexBox="Goto" CustomInfoClass="pageinfo" CustomInfoHTML="Current Page : %CurrentPageIndex%    Total Page: %PageCount%"
                        CustomInfoSectionWidth="30%" CustomInfoTextAlign="Left" OnPageChanging="AspNetPager1_PageChanging"  PageSize="11">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
